        ~ g 2 f k ; 
 
         / * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
           M o d u l e :   B W I N - C A P I . T X T 
 
                           A l l   c o m m a n d s   f o r   P P L B   i n   D y n a m i c   L i n k   L i b r a r y   f o r   W i n d o w s 
 
         N o t i c e s :   C o p y r i g h t   ( c )   1 9 9 8 - 2 0 0 6   A R G O I M P R E X 
 
         V e r s i o n :   3 . 0 4 B W   2 0 0 6 / 0 2 / 1 5 
 
         * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * / 
 
         v
 
         = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 	 B _ B a r 2 d _ M a x i ( ) 	 	 	 = >   pSQ NP  M a x i   C o d e   2 D   B a r c o d e 0
 
 	 B _ B a r 2 d _ P D F 4 1 7 ( ) 	 	 = >   pSQ NP  P D F - 4 1 7   2 D   B a r c o d e 0
 
 	 B _ B a r 2 d _ P D F 4 1 7 _ N ( ) 	 	 = >   pSQ NP  P D F - 4 1 7   2 D   B a r c o d e 0
 
 	 B _ C l o s e P r n ( ) 	 	 	 = >   ܕ  P r i n t e r   ]\O0
 
 	 B _ C r e a t e P r n ( ) 	 	 	 = >   _U  P r i n t e r   ]\O0
 
 	 B _ D e l _ F o r m ( ) 	 	 	 = >   *Rd  F o r m   ( h<h) 0
 
 	 B _ D e l _ P c x ( ) 	 	 	 = >   *Rd  F o r m   ( h<h) 0
 
 	 B _ D r a w _ B o x ( ) 	 	 	 = >   ku NPFh0
 
 	 B _ D r a w _ L i n e ( ) 	 	 	 = >   ku Nh}0
 
 	 B _ E r r o r _ R e p o r t i n g ( ) 	 	 = >   _Ubܕ/VPR0
 
 	 B _ G e t _ D L L _ V e r s i o n ( ) 	 	 = >   S_byQdkQxe^Hr,gǌ
0
 
 	 B _ G e t _ D L L _ V e r s i o n A ( ) 	 	 = >   S_byQdkQxe^Hr,gǌ
0
 
 	 B _ G e t _ G r a p h i c _ C o l o r B M P ( ) 	 = >   Ic  B M P   Wji_rpp&N\Wb_2QX[(WpSh_jgQv  R A M 0
 
 	 B _ G e t _ P c x ( ) 	 	 	 = >   RpS NPWb_&N\Wb_2QX[(WpSh_jgQv  M e m o r y 0
 
 	 B _ I n i t i a l _ S e t t i n g ( ) 	 	 = >   MRnUt0
 
 	 B _ L o a d _ P c x ( ) 	 	 	 = >   RpS NPWb_0
 
 	 B _ O p e n _ C h i n e s e F o n t ( ) 	 	 = >   _UO(u-NeޞwcW[WjHh  ( 1 6 * 1 5   T  2 4 * 2 4 ) 0
 
 	 B _ P r i n t _ F o r m ( ) 	 	 	 = >   RpS NP  F O R M   ( h<h) &N8eQ  F O R M   @b	gxe0xeǌe0
 
 	 B _ P r i n t _ M C o p y ( ) 	 	 	 = >   RpS@b	gǌeTR
N_R0
 
 	 B _ P r i n t _ O u t ( ) 	 	 	 = >   RpS@b	gǌe0
 
 	 B _ P r n _ B a r c o d e ( ) 	 	 	 = >   pSQ NPhxTR
N_R0
 
 	 B _ P r n _ C o n f i g u r a t i o n ( ) 	 	 = >   RpSpSh_jgQMn0
 
 	 B _ P r n _ T e x t ( ) 	 	 	 = >   pSQ NLeW[TR
N_R0
 
 	 B _ P r n _ T e x t _ C h i n e s e ( ) 	 	 = >   pSQ NLeW[O(u-NeޞwcW[WjHh  ( 1 6 * 1 5   b  2 4 * 2 4 ) 0
 
 	 B _ P r n _ T e x t _ T r u e T y p e ( ) 	 	 = >   pSQ NL  T r u e   T y p e   F o n t   eW[0
 
 	 B _ P r n _ T e x t _ T r u e T y p e _ W ( ) 	 	 = >   pSQ NL  T r u e   T y p e   F o n t   eW[&Nc6RW[Wv[Sؚ0
 
 	 B _ S e l e c t _ O p t i o n ( ) 	 	 = >   -[IpS!j_0_UR  C u t t e r   b  P e e l 0
 
 	 B _ S e l e c t _ O p t i o n 2 ( ) 	 	 = >   -[IpS!j_0_UR  C u t t e r   b  P e e l 0
 
 	 B _ S e l e c t _ S y m b o l ( ) 	 	 = >   &{_-[xd0
 
 	 B _ S e t _ B a c k f e e d ( ) 	 	 = >   _UR  B a c k   f e e d 0
 
 	 B _ S e t _ B M P S a v e ( ) 	 	 	 = >   2QX[q_PWj0
 
 	 B _ S e t _ D a r k n e s s ( ) 	 	 = >   -[qa-RpSq^0
 
 	 B _ S e t _ D e b u g D i a l o g ( ) 	 	 = >   -[d/tX0
 
 	 B _ S e t _ D i r e c t i o n ( ) 	 	 = >   -[RpSeT0
 
 	 B _ S e t _ F o r m ( ) 	 	 	 = >   2QX[&NRpS  F O R M   ( h<h) 0
 
 	 B _ S e t _ L a b g a p ( ) 	 	 	 = >   TBf-[jd|w^S  G A P   w^0
 
 	 B _ S e t _ L a b w i d t h ( ) 	 	 = >   -[jd|[^0
 
 	 B _ S e t _ O r i g i n p o i n t ( ) 	 	 = >   -[YRpSޞ0
 
 	 B _ S e t _ P r n c o m p o r t ( ) 	 	 = >   -[  S e r i a l   P o r t 0
 
 	 B _ S e t _ P r n c o m p o r t _ P C ( ) 	 	 = >   -[  P C   ^RW0
 
 	 B _ S e t _ S p e e d ( ) 	 	 	 = >   -[RpS^0
 
 	 B _ S e t _ P r o c e s s D l g ( ) 	 	 = >   _Ubܕ2^
\qFh
 
 	 B _ G e t U S B B u f f e r L e n ( ) 	 = >   gb  U S B   Wǌew^
 
 	 B _ E n u m U S B ( ) 	 	 	 = >   S_  U S B   Wvǌe
 
 	 B _ C r e a t e U S B P o r t ( ) 	 = >   O(u  U S B   W2LP8
 
 	 B _ R e s e t P r i n t e r ( ) 	 	 = >   OpSh_j͑e_j
 
                 
 
         * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
         laN
 
         = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
         O(uel1 . \  W I N P P L B . D L L   ReQ  \ \ W i n d o w s \ s y s t e m \   b  \ \ ? ? ? \   WL-N_
 
                             Mbd\0R0
 
 	             2 . NN{Op  V i s u a l   C + +   v{O, vQNz_ 
N N[[hQvT
 
 
 
         * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
 	 B _ G e t U S B B u f f e r L e n ( ) 
 
 	 B _ E n u m U S B ( ) 
 
         = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 	 R	 S_  U S B   P r i n t e r   vǌe0
 
 
 
 	 l	 i n t   B _ G e t U S B B u f f e r L e n ( ) ; 
 
 	 	 	 i n t   B _ E n u m U S B ( c h a r   * b u f ) ; 
 
 
 
 	 Sxe	 c h a r   * b u f ; 	 %2QX[  U S B   P r i n t e r   ǌe0
 
 
 
 
 
 	 PV<P	 B _ G e t U S B B u f f e r L e n ( ) ;   PV  U S B   vǌew^
 
 	 	 	 	 B _ E n u m U S B ( ) 	 0   - >   O K . 
 
 	 	 	 	 	 	 	 R e f e r e n c e   A W - E r r o r . t x t   f i l e . 
 
 
 
 	 {O	 c h a r   * b u f ; 
 
 	 	 	 i n t 	 n L e n   =   B _ G e t U S B B u f f e r L e n ( ) + 1 ; 
 
 	 	 	 b u f   =   m a l l o c ( n L e n ) ; 
 
 	 	 	 m e m s e t ( b u f ,   0 ,   n L e n ) ; 
 
 	 	 	 B _ E n u m U S B ( b u f ) ; 
 
 
 
 	 f	 iQPQxe/f ND}vQxe0HQ(u  B _ G e t U S B B u f f e r L e n ( )   S_  U S B   P8Wvǌe
 
 	 	 	 w^,   6q_QMaԚf}  B _ E n u m U S B ( )   2QX[  U S B   Wvǌe0U S B   Wvǌe/fN
 
 	 	 	 ( " 0 x 0 d 0 x 0 a " ) ZPR, 	OO,   Ygǌe/f  A - 2 0 0 ( 0 x 0 d ) ( 0 x 0 a ) R - 4 0 0 Z I P   vq
 
 	 	 	 h:y  U S B 1   /fc  A - 2 0 0 ,   U S B 2   /fc  R - 4 0 0 Z i p 0
 
 
 
         * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
         B _ C r e a t e P r n ( ) 
 
 	 B _ C r e a t e U S B P o r t ( ) 
 
         = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 	 R	 _U  P r i n t e r   ]\O0
 
 
 
 	 l	 i n t   B _ C r e a t e P r n ( i n t   s e l e c t i o n , L P C T S T R   f i l e n a m e ) ; 
 
 	 	 	 i n t   B _ C r e a t e U S B P o r t ( i n t   n P o r t ) ; 
 
 
 
 	 Sxe	 i n t 	 s e l e c t i o n ; 	 %d8QWbjHh0
 
 	 	 	 	 	 0   - >   p r i n t   t o   f i l e . 
 
 	 	 	 	 	 1   - >   l p t 1 ,   2   - >   l p t 2 ,   3   - >   l p t 3 
 
 	 	 	 	 	 4   - >   c o m 1 ,   5   - >   c o m 2 ,   6   - >   c o m 3 
 
 	 	 L P C T S T R 	 f i l e n a m e ; 	 %vu  s e l e c t i o n   gQ[/f  0   BfǌeGR8Qj
 
 	 	 	 	 	 Hhj
T1\/f  f i l e n a m e   gQ[S+T_b
 
 	 	 	 	 	 /f  N U L L 0vu  s e l e c t i o n   gQ[/f  1 0   Bf
 
 	 	 	 	 	 f i l e n a m e   p8Q_0
 
 	 	 	 i n t 	 n P o r t ; 	 	 	 %  U S B   P8W
 
 
 
 	 PV<P0   - >   O K . 
 
 	 	 R e f e r e n c e   B W - E r r o r . t x t   f i l e . 
 
 
 
 	 {O	 B _ C r e a t e P r n ( 1 , N U L L ) ;   b  B _ C r e a t e P r n ( 0 , " C : \ T E M P \ o u t . p r n " ) ; 
 
 	 	 B _ C r e a t e P r n ( 1 0 , " \ \ a l l e n \ L a b e l " ) ;   b  B _ C r e a t e U S B P o r t ( 1 ) ; 
 
 
 
 	 f	 B _ C r e a t e P r n   T  B _ C r e a t e U S B P o r t   Qxeg_U`Oxdv8QWb_U`OueQv
 
 	 	 8Qj0PQxe_(W@b	gQxeKNMRWL0
 
 	 	 B _ C r e a t e P r n   T  B _ C r e a t e U S B P o r t   
NTBfO(u0
 
 
 
         * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
         B _ C l o s e P r n ( ) 
 
         = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
             R    ܕ  P r i n t e r   ]\O0
 
 
 
             l    v o i d   B _ C l o s e P r n ( v o i d ) ; 
 
 
 
             {O    B _ C l o s e P r n ( ) ; 
 
 
 
          0f    P  B _ C l o s e P r n   QxegܕWLNvaԚS`Oxdv8QWbܕ`O_Uv
 
                             8Qj0PQxe_(W@b	gQxeKN_WL0
 
 
 
         * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
         B _ B a r 2 d _ M a x i ( ) 
 
         = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
             R    pSQ NP  M a x i   C o d e   2 D   B a r c o d e 0
 
 
 
             l    i n t   B _ B a r 2 d _ M a x i ( i n t   x , i n t   y , i n t   c l , i n t   c c , l o n g   i n t   p c , L P C T S T R   d a t a ) ; 
 
 
 
             Sxe    i n t             x ;                                 %X   ^j0
 
                             i n t             y ;                                 %Y   ^j0P;1   d o t   =   0 . 1 2 5   m m 0
 
                             i n t             c l ;                               %A   3 - MOxe  C l a s s   c o d e 0
 
                             i n t             c c ;                               %A   3 - MOxe  C o u n t r y   c o d e 0
 
                             l o n g   i n t   p c ;                               %(WW  P o s t   c o d e   /f NP4 b5 - MOxe
 
                                                                                       vQNW[/f  6   MOxe0
 
                             L P C T S T R     d a t a ;                           %ǌeW[2N gY8 4 PW[CQ0
 
 
 
         PV<P    0         - >   O K . 
 
                             R e f e r e n c e   B W - E r r o r . t x t   f i l e . 
 
 
 
             {O    i n t             x , y , c l , c c ; 
 
                             l o n g   i n t   p c ; 
 
                             L P C T S T R     d a t a = " T h i s   M a x i C o d e " ; 
 
                                               x = 5 0 ; y = 5 0 ; c l = 3 0 0 ; c c = 4 0 0 ; p c = 9 3 0 6 5 ; 
 
                             B _ B a r 2 d _ M a x i ( x , y , c l , c c , p c , d a t a ) ; 
 
 
 
          0f    P  B _ B a r 2 d _ M a x i   QxeSNRpSQ NP  M a x i   C o d e   2 D   B a r c o d e 0
 
 
 
         * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
         B _ B a r 2 d _ P D F 4 1 7 ( ) 
 
         = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
             R    pSQ NP  P D F - 4 1 7   2 D   B a r c o d e 0
 
 
 
             l    i n t   B _ B a r 2 d _ P D F 4 1 7 ( i n t   x , i n t   y , i n t   w , i n t   v , i n t   s , i n t   c , i n t   p x , 
 
                                                               i n t   p y , i n t   r , i n t   l , i n t   t , i n t   o , L P C T S T R   d a t a ) ; 
 
 
 
             Sxe    i n t           x ;                                   %X   ^j0
 
                             i n t           y ;                                   %Y   ^j0P;1   d o t   =   0 . 1 2 5   m m 0
 
                             i n t           w ;                                   % g'YRpS[^UMO  d o t s 0
 
                             i n t           v ;                                   % g'YRpSؚ^UMO  d o t s 0
 
                             i n t           s ;                                   %/!hckI{}{
W0 ^8 0
 
                             i n t           c ;                                   %ǌeX.~I{}{
W0   b  1 0
 
                             i n t           p x ;                                 %!jD}[^{
W2 ^9   d o t s 0
 
                             i n t           p y ;                                 %!jD}ؚ^{
W4 ^9 9   d o t s 0
 
                             i n t           r ;                                   % g'Y  r o w   c o u n t 0
 
                             i n t           l ;                                   % g'Y  c o l u m n   c o u n t 0
 
                             i n t           t ;                                   %T r u n c a t i o n   f l a g 
 
                                                                                       ' 0 '   /f  n o r m a l   T  ' 1 '   /f  t r u n c a t e d . 
 
                             i n t           o ;                                   %RpSeT[MO' 0 ' /f  0  ' 1 ' /f9 0  0
 
                                                                                                                   ' 2 ' /f1 8 0  ' 3 ' /f2 7 0  
 
                             L P C T S T R   d a t a ;                             %ǌeW[2N0
 
 
 
         PV<P    0         - >   O K . 
 
                             R e f e r e n c e   B W - E r r o r . t x t   f i l e . 
 
 
 
             {O    i n t           x , y , w , v , s , c , p x , p y , r , l , t , o ; 
 
                             L P C T S T R   d a t a = " A R G O X I N F O " ; 
 
                                             x = 1 0 ; y = 1 0 ; w = 4 0 0 ; v = 3 0 0 ; s = 0 ; c = 0 ; p x = 3 ; p y = 7 ; r = 1 0 ; l = 2 ; t = 0 ; o = 0 ; 
 
                             B _ B a r 2 d _ P D F 4 1 7 ( x , y , w , v , s , c , p x , p y , r , l , t , o , d a t a ) ; 
 
 
 
          0f    P  B _ B a r 2 d _ P D F 4 1 7   QxeSNRpSQ NP  P D F - 4 1 7   2 D   B a r c o d e 0
 
 
 
         * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
         B _ D e l _ F o r m ( ) 
 
         = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
             R    *Rd  F o r m   ( h<h) 0
 
 
 
             l    i n t   B _ D e l _ F o r m ( c h a r   f o r m n a m e [ 1 0 ] ) ; 
 
 
 
             Sxe    c h a r       f o r m n a m e [ 1 0 ] ;               %h<h
T1z gY  9   PW[0
 
                                                                                       vu  f o r m n a m e   gQ[/f  ' * ' Bf\gndpSh
 
                                                                                       _jgQ@b	gh<h0
 
         PV<P    0         - >   O K . 
 
                             R e f e r e n c e   B W - E r r o r . t x t   f i l e . 
 
 
 
             {O    c h a r   f o r m n a m e [ 1 0 ]   =   " d e m o " ; 
 
                             B _ D e l _ F o r m ( f o r m n a m e ) ; 
 
         
 
          0f    P  B _ D e l _ F o r m   Qxeg*RdpSh_jgQ`O8eQv  F o r m   ( h<h) 
T1z0vu
 
                             `O*Rd[_\
NQSFOSN͑e	eQ0
 
 
 
         * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
         B _ D e l _ P c x ( ) 
 
         = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
             R    *RdWb_0
 
 
 
             l    i n t   B _ D e l _ P c x ( c h a r   p c x n a m e [ 1 0 ] ) ; 
 
 
 
             Sxe    c h a r       p c x n a m e [ 1 0 ] ;                 %Wb_
T1z gY  9   PW[0
 
                                                                                       vu  p c x n a m e   gQ[/f  ' * ' Bf\gndpSh
 
                                                                                       _jgQ  R A M   b  f l a s h   m e m o r y   @b	gWb_0
 
         PV<P    0         - >   O K . 
 
                             R e f e r e n c e   B W - E r r o r . t x t   f i l e . 
 
 
 
             {O    c h a r   p c x n a m e [ 1 0 ] = " * " ; 
 
                             B _ D e l _ P c x ( p c x n a m e ) ; 
 
 
 
          0f    P  B _ D e l _ P c x   Qxeg*RdpSh_jgQ`O8eQvWb_
T1z0vu`O*Rd[_
 
                             \
NQSFOSN͑e	eQ0
 
 
 
         * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
         B _ D r a w _ B o x ( ) 
 
         = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
             R    ku NPFh0
 
 
 
             l    i n t   B _ D r a w _ B o x ( i n t   x , i n t   y , i n t   t h i c k n e s s , i n t   h o r _ d o t s , i n t   v e r _ d o t s ) ; 
 
 
 
             Sxe    i n t         x ;                                     %wޞ  X   ^j0
 
                             i n t         y ;                                     %wޞ  Y   ^j0
 
                                                                                       P;1   d o t   =   0 . 1 2 5   m m 0
 
                             i n t         t h i c k n e s s ;                     %c[FhV}S^0
 
                             i n t         h o r _ d o t s ;                       %
\҉ޞ  X   ^j0
 
                             i n t         v e r _ d o t s ;                       %
\҉ޞ  Y   ^j0
 
 
 
         PV<P    0         - >   O K . 
 
                             R e f e r e n c e   B W - E r r o r . t x t   f i l e . 
 
 
 
             {O    i n t   x , y , t h i c k n e s s , h o r _ d o t s , v e r _ d o t s ; 
 
                                     x = 5 0 ; y = 1 2 0 ; t h i c k n e s s = 5 ; h o r _ d o t s = 2 5 0 ; v e r _ d o t s = 1 5 0 ; 
 
                             B _ D r a w _ B o x ( x , y , t h i c k n e s s , h o r _ d o t s , v e r _ d o t s ) ; 
 
 
 
          0f    P  B _ D r a w _ B o x   Qxegku NPl\'`/f  " O R "   vFh0
 
 
 
         * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
         B _ D r a w _ L i n e ( ) 
 
         = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
             R    ku Nh}0
 
 
 
             l    i n t   B _ G e t _ L i n e ( c h a r   m o d e , i n t   x , i n t   y , i n t   h o r _ d o t s , i n t   v e r _ d o t s ) ; 
 
 
 
             Sxe    c h a r       m o d e ;                               %xd}h.z^YNh
 
                                                                                               R%P%P%d%P%P%P%P%P%P%P%P%P%P%P%U%
 
                                                                                               %m o d e %}h.z^                            %
 
                                                                                               ^%P%P%j%P%P%P%P%P%P%P%P%P%P%P%a%
 
                                                                                               %  E     %e x c l u s i v e   O R                     %
 
                                                                                               % % %<% % % % % % % % % % % %$%
 
                                                                                               %  O     %O R                                         %
 
                                                                                               % % %<% % % % % % % % % % % %$%
 
                                                                                               %  W     %}v}[g˄cHQMRq_P%
 
                                                                                               % % %4% % % % % % % % % % % %%
 
                             i n t         x ;                                     %wޞ  X   ^j0
 
                             i n t         y ;                                     %wޞ  Y   ^j0
 
                                                                                       P;1   d o t   =   0 . 1 2 5   m m 0
 
                             i n t         w i d t h ;                             %4ls^w^0
 
                             i n t         h e i g h t ;                           %Wvw^0
 
 
 
         PV<P    0         - >   O K . 
 
                             R e f e r e n c e   B W - E r r o r . t x t   f i l e . 
 
 
 
             {O    c h a r   m o d e , 
 
                             i n t     x , y , h o r _ d o t s , v e r _ d o t s ; 
 
                                       m o d e = ' O ' ; x = 5 0 ; y = 3 0 ; h o r _ d o t s = 1 0 0 ; v e r _ d o t s = 1 0 ; 
 
                             B _ D r a w _ L i n e ( m o d e , x , y , h o r _ d o t s , v e r _ d o t s ) ; 
 
 
 
          0f    P  D r a w _ L i n e   Qxegku NPl\'`/f" O R " b" X O R " v}hS Nh}v}0
 
 
 
         * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
         B _ E r r o r _ R e p o r t i n g ( ) 
 
         = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
             R    _Ubܕ/VPR0
 
 
 
             l    i n t   B _ E r r o r _ R e p o r t i n g ( c h a r   o p t i o n ) ; 
 
 
 
             Sxe    c h a r   o p t i o n ;                               %vu  o p t i o n   /f' N ' Bf  D i s a b l e   rKaVK
 
                                                                                       ' S '   /f  E n a b l e   rKaVK0
 
         PV<P    0         - >   O K . 
 
                             R e f e r e n c e   B W - E r r o r . t x t   f i l e . 
 
 
 
             {O    c h a r   o p t i o n ; 
 
                                       o p t i o n = ' S ' ; 
 
                             B _ E r r o r _ R e p o r t i n g ( o p t i o n ) ; 
 
 
 
          0f    P  B _ E r r o r _ R e p o r t i n g   QxegOpSh_jrKaVK  D i s a b l e / E n a b l e V
 
                             KS/fN  R S 2 3 2   P o r t 0[<P/f  D i s a b l e 0
 
 
 
         * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
         B _ G e t _ D L L _ V e r s i o n ( ) 
 
 	 B _ G e t _ D L L _ V e r s i o n A ( ) 
 
         = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
             R    S_byQdkQxe^Hr,gǌ
0
 
 
 
             l    c h a r *   B _ G e t _ D L L _ V e r s i o n ( i n t   n S h o w M e s s a g e ) ;   
 
 	 	 	     i n t   B _ G e t _ D L L _ V e r s i o n A ( i n t   n S h o w M e s s a g e ) ;   
 
 
 
             Sxe    i n t         n S h o w M e s s a g e ;               %
o`zos00   - >   
Nos01   - >   os0
 
 
 
         PV<P    PVHr,gǌ
W[2N1YWeGRPV  N U L L 0
 
 	 	 	     B _ G e t _ D L L _ V e r s i o n A ( )   - >   r e t u r n   v e r s i o n   v a l u e . 
 
 
 
             {O    B _ G e t _ D L L _ V e r s i o n ( 1 ) ; 
 
 
 
          0f    P  B _ G e t _ D L L _ V e r s i o n   QxeO(uS_byQdkQxe^Hr,gǌ
0
 
 
 
         * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
         B _ G e t _ G r a p h i c _ C o l o r B M P ( ) 
 
         = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
             R    Ic  B M P   Wji_rpp&N\Wb_2QX[(WpSh_jgQv  R A M 0
 
 
 
             l    i n t   B _ G e t _ G r a p h i c _ C o l o r B M P ( i n t   x ,   i n t   y ,   L P C T S T R   f i l e n a m e ) ; 
 
 
 
             Sxe    i n t         x ;                                     %X   ^j0
 
                             i n t         y ;                                     %Y   ^j0
 
                             L P C T S T R   f i l e n a m e                       %Wb_j
T1zS+T_0
 
                                                                                       <h_YX X X X X X X X . X X X   b  X : \ X X X \ X X X . B M P 
 
         PV<P    0         - >   O K . 
 
                             R e f e r e n c e   B W - E r r o r . t x t   f i l e . 
 
 
 
             {O    B _ G e t _ G r a p h i c _ C o l o r B M P ( 3 0 , 2 0 , " g i r l . b m p " ) ; 
 
 
 
          0f    P  B _ G e t _ G r a p h i c _ C o l o r B M P   QxeS8eQNUOOr  B M P   Wj&NRIcp
 
                             ў}vppWjpSh_jRpSIcT1u  W i n d o w s ' s   D r i v e r   f o r   D r . 2 0 0 
 
                             o r   D r . 3 0 0   te@bNO(u_ [݈  A R G O X   D r i v e r pSh_jbSp-pSh_j
 
                             GP  d e f a u l t   p r i n t e r   
N/f  D r . 2 0 0   b  D r . 3 0 0   z_Rd\  W i n d o w s   gQ
 
                             /f&T	g݈  D r . 2 0 0   b  D r . 3 0 0 QO^O(u0Wb_2QX[(WpSh_jgQv  R A M 0
 
 
 
         * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
         B _ G e t _ P c x ( ) 
 
         = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
             R    RpS NPWb_&N\Wb_2QX[(WpSh_jgQv  M e m o r y 0
 
 
 
             l    i n t   B _ G e t _ P c x ( i n t   x , i n t   y , L P C T S T R   f i l e n a m e ) ; 
 
 
 
             Sxe    i n t             x ;                                 %X   ^j0
 
                             i n t             y ;                                 %Y   ^j0P;1   d o t   =   0 . 1 2 5   m m 0
 
                             L P C T S T R     f i l e n a m e ;                   %Wb_j
T1zS+T_0
 
                                                                                       <h_YX X X X X X X X . X X X   b  X : \ X X X \ X X X . P C X 
 
         PV<P    0         - >   O K . 
 
                             R e f e r e n c e   B W - E r r o r . t x t   f i l e . 
 
 
 
             {O    B _ G e t _ P c x ( 1 0 , 1 0 0 , " p h o n e . p c x " ) ; 
 
 
 
          0f    P  B _ G e t _ P c x   QxegRpS NPWb_&N\Wb_2QX[(WpSh_jgQv  R A M   b
 
                             f l a s h   m e m o r y 0Wb_j_/f  P C X   v<h_0
 
 
 
         * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
         B _ I n i t i a l _ S e t t i n g ( ) 
 
         = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
             R    MRnUt0
 
 
 
             l    i n t   B _ I n i t i a l _ S e t t i n g ( i n t   T y p e , L P C T S T R   S o u r c e ) ; 
 
 
 
             Sxe    i n t               T y p e ;                         %xd8eQ!j_<Pp  0   - >   8eQW[2N
 
                                                                                                                             1   - >   8eQjHh0
 
                             L P C T S T R       S o u r c e ;                     %ǌeOnSpW[2NbjHh
T1zS+T_0
 
                                                                                       
 
         PV<P    0         - >   O K . 
 
                             R e f e r e n c e   B W - E r r o r . t x t   f i l e . 
 
 
 
             {O    L P C T S T R   a a   =   " Z T \ r \ n \ 0 " ;   B _ I n i t i a l _ S e t t i n g ( 0 , a a ) ; 
 
                             o r 
 
                             B _ I n i t i a l _ S e t t i n g ( 1 , " i n i t f i l e . t x t " ) ; 
 
 
 
          0f    P  B _ I n i t i a l _ S e t t i n g   QxeMRnUtvR\O/f\ N2N  C o m m a n d   HQpSh
 
                             _j1uW[2NbjHh8eQ(WO(uPQxeBfHQ(W  B _ C r e a t e _ P r n ( )   KN_vQN
 
                             QxeKNMRS\OpO(uWKa0
 
 
 
         * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
         B _ L o a d _ P c x ( ) 
 
         = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
             R    RpS NPWb_0
 
 
 
             l    i n t   B _ L o a d _ P c x ( i n t   x , i n t   y , c h a r   p c x n a m e [ 1 0 ] ) ; 
 
 
 
             Sxe    i n t         x ;                                     %X   ^j0
 
                             i n t         y ;                                     %Y   ^j0P;1   d o t   =   0 . 1 2 5   m m 0
 
                             c h a r       p c x n a m e [ 1 0 ] ;                 %Wb_j
T1z g'Y9 PW[CQ0
 
 
 
         PV<P    0         - >   O K . 
 
                             R e f e r e n c e   B W - E r r o r . t x t   f i l e . 
 
 
 
             {O    i n t       x , y ; 
 
                             c h a r     p c x n a m e [ 1 0 ] = " p h o n e " ; 
 
                                         x = 5 0 ; y = 3 0 ; 
 
                             B _ L o a d _ P c x ( x , y , p c x n a m e ) ; 
 
 
 
          0f    P  B _ L o a d _ P c x   QxegRpS NP  P C X   <h_Wb_Wb__NHQ	eQpSh
 
                             _jgQv  R A M   b  f l a s h   m e m o r y   2QX[0
 
 
 
         * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
         B _ O p e n _ C h i n e s e F o n t ( ) 
 
         = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
             R    _UO(u-NeޞwcW[WjHh  ( 1 6 * 1 5   T  2 4 * 2 4 ) 0
 
 
 
             l    i n t   B _ O p e n _ C h i n e s e F o n t ( c h a r *   p a t h ) ; 
 
 
 
             Sxe    c h a r *     p a t h ;                               %-NeޞwcW[WjHhOn_0
 
 
 
         PV<P    0         - >   O K . 
 
                             R e f e r e n c e   B W - E r r o r . t x t   f i l e . 
 
 
 
             {O    B _ O p e n _ C h i n e s e F o n t ( " C : \ \ E T 3 " ) ; 
 
 
 
          0f    P  B _ O p e n _ C h i n e s e F o n t   Qxe_U-NeޞwcW[WjHh  ( 1 6 * 1 5   T  2 4 * 2 4 ) 
 
                             O  B _ P r n _ T e x t _ C h i n e s e   QxeO(u0
 
 
 
         * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
         B _ P r i n t _ F o r m ( ) 
 
         = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
             R    RpS NP  F O R M   ( h<h) &N8eQ  F O R M   @b	gxe0xeǌe0
 
 
 
             l    i n t   B _ P r i n t _ F o r m ( i n t   l a b s e t , i n t   c o p i e s , c h a r   f o r m _ o u t [ 1 0 ] , 
 
                                                           L P T S T R   v a r ) ; 
 
 
 
             Sxe    i n t         l a b s e t ;                           %RpSvNxe{
W1 ^3 2 7 6 7 0
 
                             i n t         c o p i e s ;                           %vNxe{
W1 ^3 2 7 6 7 0
 
                             c h a r       f o r m _ o u t [ 1 0 ] ;               %h<h
T1zTeKNMR	eQv  F O R M   
T1z
 
                                                                                       bSHQ2QX[(WpSh_jgQv  F O R M 0
 
                             L P T S T R   v a r ;                                 %8eQ  F O R M   @b	gxe0xeǌe(u  " , " 
 
                                                                                       O^R%R@S0Ygxe	g" , " _
 
                                                                                       S(u" ; , " ONh_0
 
         PV<P    0         - >   O K . 
 
                             R e f e r e n c e   B W - E r r o r . t x t   f i l e . 
 
 
 
             {O    i n t         l a b s e t , c o p i e s ; 
 
                             c h a r       f o r m _ o u t [ 1 0 ] = " d e m o " ; 
 
                             L P T S T R   v a r = " 2 0 0 0 , d e n g " ; 
 
                                           l a b s e t = 3 ; c o p y p i e c e = 2 ; 
 
                             B _ P r i n t _ f o r m ( l a b s e t , c o p i e s , f o r m _ o u t , v a r ) ; 
 
 
 
          0f    P  B _ P r i n t _ F o r m   Qxeg@b	gǌeSh<h0R  P r i n t e r PQxeO(uMR
 
                             HQWL  B _ S e t _ F o r m ( ) &N(W@b	gQxeKN_B _ C l o s e P r n ( )   KNMRWL0vuO
 
                             (udkQxeBf1\
NWL  B _ P r i n t _ O u t ( ) 0
 
 
 
         * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
         B _ P r i n t _ M C o p y ( ) 
 
         = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
             R    RpS@b	gǌeTR
N_R0
 
 
 
             l    i n t   B _ P r i n t _ M C o p y ( i n t   l a b s e t , i n t   c o p i e s ) 
 
 
 
             Sxe    i n t           l a b s e t ;                         %RpSvNxe0
 
                             i n t           c o p i e s ;                         %vNxevup  1   BfTI{eP r i n t _ O u t ( ) R
 
                                                                                       0
 
 
 
         PV<P    0         - >   O K . 
 
                             R e f e r e n c e   B W - E r r o r . t x t   f i l e . 
 
 
 
             {O    B _ P r i n t _ M C o p y ( 2 , 2 ) ; 
 
 
 
             f    P  B _ P r i n t _ M C o p y   Qxeg@b	gǌe0R  P r i n t e r PQxe(W@b	gQxeKN
 
                             _B _ C l o s e P r n ( )   KNMRWLvuO(udkQxeBf1\
NWL  B _ P r i n t _ O u t ( ) 0[
 
                             S+T  B _ P r i n t _ O u t ( )   @b	gR0
 
 
 
         * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
         B _ P r i n t _ O u t ( ) 
 
         = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
             R    RpS@b	gǌe0
 
 
 
             l    i n t   B _ P r i n t _ O u t ( i n t   l a b s e t ) ; 
 
 
 
             Sxe    i n t         l a b s e t ;                           %RpSvNxe0
 
 
 
         PV<P    0         - >   O K . 
 
                             R e f e r e n c e   B W - E r r o r . t x t   f i l e . 
 
 
 
             {O    B _ P r i n t _ O u t ( 1 ) ; 
 
 
 
          0f    P  B _ P r i n t _ O u t   Qxeg@b	gǌe0R  B _ P r i n t e r PQxe(W@b	gQxeKN
 
                             _B _ C l o s e P r n ( )   KNMRWL0
 
 
 
         * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
         B _ P r n _ B a r c o d e ( ) 
 
         = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
             R    pSQ NPhxTR
N_R0
 
 
 
             l    i n t   B _ P r n _ B a r c o d e ( i n t   x , i n t   y , i n t   o r i , c h a r   t y p e [ 4 ] , i n t   n a r r o w , 
 
                                                             i n t   w i d t h , i n t   h e i g h t ,   c h a r   h u m a n , L P C T S T R   d a t a ) ; 
 
 
 
             Sxe    i n t         x ;                                     %X   ^j0
 
                             i n t         y ;                                     %Y   ^j0
 
                                                                                       P;2 0 0   d p i   = >   1   d o t   =   0 . 1 2 5   m m 0
 
                             i n t         o r i ;                                 %RpSeT[MO' 0 ' /f  0  ' 1 ' /f9 0  0
 
                                                                                                                   ' 2 ' /f1 8 0  ' 3 ' /f2 7 0  
 
                             c h a r       t y p e [ 4 ] ;                         %B a r   c o d e   W_0YNh
 
         R%P%P%d%P%P%P%P%P%P%P%P%P%P%P%P%P%P%d%P%P%d%P%P%P%P%P%P%P%P%P%P%P%P%P%P%U%
 
         %t y p e %                hx.z^                        %t y p e %                    hx.z^                    %
 
         ^%P%P%j%P%P%P%P%P%P%P%P%P%P%P%P%P%P%j%P%P%j%P%P%P%P%P%P%P%P%P%P%P%P%P%P%a%
 
         %  0     %C o d e   1 2 8   U C C   ( s h i p p i n g   c o n t - %  E 3 0 %E A N - 1 3                                             %
 
         %        %a i n e r   c o d e )                                   % % %<% % % % % % % % % % % % % % %$%
 
         % % %<% % % % % % % % % % % % % % %$%  E 3 2 %E A N - 1 3   2   d i g i t   a d d - o n               %
 
         %  1     %C o d e   1 2 8   s u b s e t   A , B   a n d   C       % % %<% % % % % % % % % % % % % % %$%
 
         % % %<% % % % % % % % % % % % % % %$%  E 3 5 %E A N - 1 3   5   d i g i t   a d d - o n               %
 
         %  1 E   %U C C / E A N                                           % % %<% % % % % % % % % % % % % % %$%
 
         % % %<% % % % % % % % % % % % % % %$%  E 8 0 %E A N - 8                                               %
 
         %  2     %I n t e r l e a v e d   2   o f   5                     % % %<% % % % % % % % % % % % % % %$%
 
         % % %<% % % % % % % % % % % % % % %$%  E 8 2 %E A N - 8   2   d i g i t   a d d - o n                 %
 
         %  2 C   %I n t e r l e a v e d   2   o f   5   w i t h   c h e - % % %<% % % % % % % % % % % % % % %$%
 
         %        %c k   s u m   d i g i t                                 %  E 8 5 %E A N - 8   5   d i g i t   a d d - o n                 %
 
         % % %<% % % % % % % % % % % % % % %<% % %<% % % % % % % % % % % % % % %$%
 
         %  2 D   %I n t e r l e a v e d   2   o f   5   w i t h   h u m - %  K     %C o d a b a r                                           %
 
         %        %a n   r e a d a b l e   c h e c k   d i g i t           % % %<% % % % % % % % % % % % % % %$%
 
         % % %<% % % % % % % % % % % % % % %$%  P     %P o s t n e t                                           %
 
         %  2 G   %G e r m a n   P o s t c o d e                           % % %<% % % % % % % % % % % % % % %$%
 
         % % %<% % % % % % % % % % % % % % %$%  U A 0 %U P C - A                                               %
 
         %  2 M   %M a t r i x   2   o f   5                               % % %<% % % % % % % % % % % % % % %$%
 
         % % %<% % % % % % % % % % % % % % %$%  U A 2 %U P C - A   2   d i g i t   a d d - o n                 %
 
         %  2 U   %U P C   I n t e r l e a v e d   2   o f   5             % % %<% % % % % % % % % % % % % % %$%
 
         % % %<% % % % % % % % % % % % % % %$%  U A 5 %U P C - A   5   d i g i t   a d d - o n                 %
 
         %  3     %C o d e   3   o f   9                                   % % %<% % % % % % % % % % % % % % %$%
 
         % % %<% % % % % % % % % % % % % % %$%  U E 0 %U P C - E                                               %
 
         %  3 C   %C o d e   3   o f   9   w i t h   c h e c k   s u m     % % %<% % % % % % % % % % % % % % %$%
 
         %        %d i g i t                                               %  U E 2 %U P C - E   2   d i g i t   a d d - o n                 %
 
         % % %<% % % % % % % % % % % % % % %<% % %<% % % % % % % % % % % % % % %$%
 
         %  9     %C o d e   9 3                                           %  U E 5 %U P C - E   5   d i g i t   a d d - o n                 %
 
         % % %4% % % % % % % % % % % % % % %4% % %4% % % % % % % % % % % % % % %%
 
 
 
                             i n t         n a r r o w ;                           %N A R R O W   b a r   [^(W g\UMO
 
                             i n t         w i d t h ;                             %W I D E   b a r   [^(W g\UMO
 
                             i n t         h e i g h t ;                           %B a r   c o d e   ؚ^0
 
                             i n t         h u m a n ;                             %vu  h u m a n   /f' N ' BfGR
NRpSeW[
 
                                                                                       vu  h u m a n   /f' B ' BfGRRpSSeW[0
 
                             L P C T S T R   d a t a ;                             %ǌeW[2Nvu>\zǌeR
N
 
                                                                                       < O p e r a t i o n   N u m b e r >   <h_pR
N_R
 
                                                                                       O p e r a t i o n :   +   o r   -   _
 
                                                                                       N u m b e r :   0   ~   3 2 7 6 8   xe<P0
 
 
 
         PV<P    0         - >   O K . 
 
                             R e f e r e n c e   B W - E r r o r . t x t   f i l e . 
 
 
 
             {O    B _ P r n _ B a r c o d e ( 6 5 0 , 1 5 , 0 , " E 8 0 " , 2 , 2 , 5 1 , ' B ' , " 1 2 3 4 5 6 7 " ) ;   !q_R
 
                             o r   
 
                             B _ P r n _ B a r c o d e ( 6 5 0 , 1 5 , 0 , " E 8 0 " , 2 , 2 , 5 1 , ' B ' , " 1 2 3 4 5 6 7 < + 1 0 > " ) ;   	g_R
 
 
 
          0f    P  B _ P r n _ B a r c o d e   QxeSNRpSQ NPyr[  B a r c o d e   TR
N_R0
 
 
 
         * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
         B _ P r n _ C o n f i g u r a t i o n ( ) 
 
         = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
             R    RpSpSh_jgQMn0
 
 
 
             l    v o i d   B _ P r n _ C o n f i g u r a t i o n ( v o i d ) ; 
 
 
 
             {O    B _ P r n _ C o n f i g u r a t i o n ( ) ; 
 
 
 
          0f    P  B _ P r n _ C o n f i g u r a t i o n   QxegRpSpSh_jgQMnS+T-[0
 
                             f i r m w a r e   Hr,g0a c c e s s o r i e s 0I{. . . . 0
 
 
 
         * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
         B _ P r n _ T e x t ( ) 
 
         = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
             R    pSQ NLeW[TR
N_R0
 
 
 
             l    i n t   B _ P r n _ T e x t ( i n t   x , i n t   y , i n t   o r i , i n t   f o n t , i n t   h o r _ f a c t o r , 
 
                                                       i n t   v e r _ f a c t o r , c h a r   m o d e , L P C T S T R   d a t a ) ; 
 
 
 
             Sxe    i n t         x ;                                     %X   ^j0
 
                             i n t         y ;                                     %Y   ^j0P;1   d o t   =   0 . 1 2 5   m m 0
 
                             i n t         o r i ;                                 %RpSeT[MO' 0 ' /f  0  ' 1 ' /f9 0  0
 
                                                                                                                   ' 2 ' /f1 8 0  ' 3 ' /f2 7 0  
 
                             i n t         f o n t ;                               %xdW[b_1 ^5   xd8^GOW[b_0
 
                             i n t         h o r _ f a c t o r ;                   %4ls^>e'YkO{
W1 ^2 4 0
 
                             i n t         v e r _ f a c t o r ;                   %Wv>e'YkO{
W1 ^2 4 0
 
                             c h a r       m o d e ;                               %S}vR' N ' nfeW[
 
                                                                                                           ' R ' S}veW[0
 
                             L P C T S T R   d a t a ;                             %ǌeW[2Nvu>\zǌeR
N
 
                                                                                       < O p e r a t i o n   N u m b e r >   <h_pR
N_R
 
                                                                                       O p e r a t i o n :   +   o r   -   _
 
                                                                                       N u m b e r :   0   ~   3 2 7 6 8   xe<P0
 
         PV<P    0         - >   O K . 
 
                             R e f e r e n c e   B W - E r r o r . t x t   f i l e . 
 
 
 
             {O    B _ P r n _ T e x t ( 5 0 , 1 1 0 , 0 , 4 , 1 , 1 , ' N ' , " A 1 2 3 4 5 6 " ) ;   !q_R
 
                             o r 
 
                             B _ P r n _ T e x t ( 5 0 , 1 1 0 , 0 , 4 , 1 , 1 , ' N ' , " A 1 2 3 4 5 6 < - 1 > " ) ;   	g_R
 
 
 
          0f    P  B _ P r n _ T e x t   QxeSNRpSQ NLeW[TR
N_R0
 
 
 
         * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
         B _ P r n _ T e x t _ C h i n e s e ( ) 
 
         = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
             R    pSQ NLeW[O(u-NeޞwcW[WjHh  ( 1 6 * 1 5   b  2 4 * 2 4 ) 0
 
 
 
             l    i n t   B _ P r n _ T e x t _ C h i n e s e ( i n t   x , i n t   y , i n t   f o n t t y p e , L P C T S T R   i d _ n a m e , L P C T S T R   d a t a ) ; 
 
             
 
             Sxe    i n t             x ;                                 %X   ^j0( d o t ) 
 
                             i n t             y ;                                 %Y   ^j0( d o t ) 
 
                             i n t             f o n t t y p e ;                   %wcW[Wxd0
 
                                                                                       0   - >   1 6 * 1 5 01   - >   2 4 * 2 4 0
 
                             L P C T S T R     i d _ n a m e ;                     %f}N NPX%R
T1zX[>eepSh_jgQN_v
 
                                                                                       cO(u  L o a d _ P c x ( )   sSS\
W|TSQO0
 
                             L P C T S T R     d a t a ;                           %eW[gQ[0
 
                 
 
         PV<P    0         - >   O K . 
 
                             R e f e r e n c e   B W - E r r o r . t x t   f i l e . 
 
 
 
             {O    B _ O p e n _ C h i n e s e F o n t ( " C : \ \ E T 3 " ) ; 
 
                             B _ P r n _ T e x t _ C h i n e s e ( 1 0 0 ,   1 0 0 ,   0 , " A 0 1 " , " W[)RvvuMR!B#C$D" ) ; 
 
 
 
          0f    P  B _ P r n _ T e x t _ C h i n e s e   QxeSNpSQ NLeW[O(u-NeޞwcW[WjHh
 
                             ( 1 6 * 1 5   b  2 4 * 2 4 ) 0
 
                             FOHQ[݈  W i n d o w ' s   D r i v e r   f o r   D r . 2 0 0   o r   D r . 3 0 0 om_  d r i v e r   -[
 
                             pSh_jbSp-pSh_jGPd e f a u l t   p r i n t e r   
N/f  D r . 2 0 0   b  D r . 3 0 0   
 
                             z_Rd\  W i n d o w s   gQ/f&T	g݈  D r . 2 0 0   b  D r . 3 0 0 (WO^O(u0
 
 
 
         * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
         B _ P r n _ T e x t _ T r u e T y p e ( ) 
 
 	 B _ P r n _ T e x t _ T r u e T y p e _ W ( ) 
 
         = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
             R    pSQ NL  T r u e   T y p e   F o n t   eW[0
 
 
 
             l    i n t   B _ P r n _ T e x t _ T r u e T y p e ( i n t   x , i n t   y , i n t   F S i z e , L P C T S T R   F T y p e , 
 
                                                                         i n t   F s p i n , i n t   F W e i g h t , i n t   F I t a l i c , i n t   F U n l i n e , 
 
                                                                         i n t   F S t r i k e O u t , L P C T S T R   i d _ n a m e , L P C T S T R   d a t a ) ; 
 
                             i n t   B _ P r n _ T e x t _ T r u e T y p e _ W ( i n t   x , i n t   y , i n t   F H e i g h t , i n t   F W i d t h , L P C T S T R   F T y p e , 
 
                                                                         i n t   F s p i n , i n t   F W e i g h t , i n t   F I t a l i c , i n t   F U n l i n e , 
 
                                                                         i n t   F S t r i k e O u t , L P C T S T R   i d _ n a m e , L P C T S T R   d a t a ) ; 
 
 	 	 	 	 	 	 	 	 	             
 
             Sxe    i n t             x ;                                 %X   ^j0
 
                             i n t             y ;                                 %Y   ^j0P;1   d o t   =   0 . 1 2 5   m m 0
 
                             i n t             F S i z e ;                         %T r u e T y p e   f o n t   s i z e UMOpޞ( d o t ) 0
 
 	 	 	 	 	 	 	 	 	 	 	 F S i z e   =   ( d p i   *   p o i n t )   /   7 2 . 
 
 	 	 	     i n t             F H e i g h t ;                     %W[Wؚ^UMOpޞ( d o t ) 0
 
 	 	 	 	 	 	 	 	 	 	 	 F H e i g h t   =   ( d p i   *   p o i n t )   /   7 2 . 
 
                             i n t             F W i d t h ;                       %W[W[^UMOpޞ( d o t ) 0
 
 	 	 	 	 	 	 	 	 	 	 	 F W i d t h   =   ( d p i   *   p o i n t )   /   7 2 . 
 
                             L P C T S T R     F T y p e ;                         %T r u e T y p e   f o n t   W[W
T1z0
 
                             i n t             F s p i n ;                         %T r u e T y p e   f o n t   W[ԚeI0
 
                                                                                       1   - >   0 ,   2   - >   9 0 ,   3   - >   1 8 0 ,   4   - >   2 7 0 
 
                             i n t             F W e i g h t ;                     %T r u e T y p e   f o n t   W[Ԛ|0}0
 
                                                                                       0   a n d   N U L L   a n d   4 0 0   - >   4 0 0   jn0
 
                                                                                       1 0 0   - >   ^8^0}02 0 0   - >   ui0}0
 
                                                                                       3 0 0   - >   0}                05 0 0   - >   -NI{0
 
                                                                                       6 0 0   - >   JS|    07 0 0   - >   |    0
 
                                                                                       8 0 0   - >   yr|    09 0 0   - >   ўԚ0
 
                             i n t             F I t a l i c ;                     %T r u e T y p e   f o n t   W[ԚeԚ0
 
                                                                                       0   - >   F A L S E 01   - >   T R U E 0
 
                             i n t             F U n l i n e ;                     %T r u e T y p e   f o n t   W[ԚR^}0
 
                                                                                       0   - >   F A L S E 01   - >   T R U E 0
 
                             i n t             F S t r i k e O u t ;               %T r u e T y p e   f o n t   W[ԚR*Rd}0
 
                                                                                       0   - >   F A L S E 01   - >   T R U E 0
 
                             L P C T S T R     i d _ n a m e ;                     %f}N NPX%R
T1zX[>eepSh_jgQN_v
 
                                                                                       cO(u  L o a d _ P c x ( )   sSS\
W|TSQO0
 
                             L P C T S T R     d a t a ;                           %eW[gQ[0
 
                 
 
         PV<P    0         - >   O K . 
 
                             R e f e r e n c e   B W - E r r o r . t x t   f i l e . 
 
 
 
             {O    B _ P r n _ T e x t _ T r u e T y p e ( 3 0 , 3 5 , 4 0 , " jwiԚ" , 4 , 4 0 0 , 0 , 0 , 0 , " A A " , " _jU}[" ) ; 
 
 	                     B _ P r n _ T e x t _ T r u e T y p e _ W ( 3 0 , 3 5 , 4 0 , 3 0 , " jwiԚ" , 4 , 4 0 0 , 0 , 0 , 0 , " A A " , " _jU}[" ) ; 
 
 
 
          0f    P  B _ P r n _ T e x t _ T r u e T y p e   QxeSNpSQ NL  T r u e   T y p e   F o n t   eW[
 
                             FOHQ[݈  W i n d o w ' s   D r i v e r   f o r   D r . 2 0 0   o r   D r . 3 0 0 om_  d r i v e r   -[
 
                             pSh_jbSp-pSh_jGPd e f a u l t   p r i n t e r   
N/f  D r . 2 0 0   b  D r . 3 0 0   
 
                             z_Rd\  W i n d o w s   gQ/f&T	g݈  D r . 2 0 0   b  D r . 3 0 0 (WO^O(u0
 
 
 
         * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
         B _ S e l e c t _ O p t i o n ( ) 
 
         B _ S e l e c t _ O p t i o n 2 ( ) 
 
         = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
             R    -[IpS!j_0_UR  C u t t e r   b  P e e l 0
 
 
 
             l    i n t   B _ S e l e c t _ O p t i o n ( i n t   o b j e c t ) ; 
 
 	             i n t   B _ S e l e c t _ O p t i o n 2 ( i n t   o b j e c t ,   i n t   p ) 
 
 
 
             Sxe    i n t       o b j e c t ;                             %pSh_jRx0
 
                                                                                       1   - >   _UqIܕ  C u t t e r   T  P e e l 0
 
                                                                                       2   - >   _Uqaܕ  C u t t e r   T  P e e l 0
 
                                                                                       3   - >   _UqaT  C u t t e r ܕ  P e e l 0
 
                                                                                       4   - >   _UqaT  P e e l ܕ  C u t t e r 0
 
                                                                                       5   - >   _UqIT  C u t t e r ܕ  P e e l 0
 
                                                                                       6   - >   _UqIT  P e e l ܕ  C u t t e r 0
 
 	             i n t       p ; 	 	 	   %-[C u t t e r R5_xe, O(uC u t t e r BfMb	gHe
 
         PV<P    0         - >   O K . 
 
                             R e f e r e n c e   B W - E r r o r . t x t   f i l e . 
 
 
 
             {O    B _ S e l e c t _ O p t i o n ( 1 ) ; 
 
 	             B _ S e l e c t _ O p t i o n 2 ( 3 ,   2 ) ; 
 
 
 
          0f    B _ S e l e c t _ O p t i o n ,   B _ S e l e c t _ O p t i o n 2 QxeSNxd
NT  P r i n t e r   xOpS
 
 	             h_jOdNx]\O0
 
 
 
         * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
         B _ S e l e c t _ S y m b o l ( ) 
 
         = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
             R    &{_-[xd0
 
 
 
             l    i n t   B _ S e l e c t _ S y m b o l ( i n t   n u m _ b i t , i n t   s y m b o l , i n t   c o u n t r y ) ; 
 
 
 
             Sxe    i n t         n u m _ b i t ;                         %ǌeMOCQxeϑ08   /f  8 - b i t   d a t a   T
 
                                                                                                                   7   /f  7 - b i t   d a t a 0
 
                             i n t         s y m b o l ;                           %&{_-[0Nh
 
                                                                                       P;]^gQ[&{_-[/f  C o d e   p a g e 
 
                                                                                       4 3 7 ( E n g l i s h ) 0
 
                             i n t         c o u n t r y ;                         %K D U   c o u n t r y   c o d e . 
 
                                   R%P%P%P%P%P%P%P%P%P%P%P%P%P%P%d%P%P%P%P%P%P%P%P%P%P%P%P%P%P%U%
 
                                   %                8   b i t   d a t a                     %                7   b i t   d a t a                     %
 
                                   % % % %,% % % % % % % % % % %<% % % %,% % % % % % % % % % %$%
 
                                   %s y m b o l %        C o d e   p a g e               %s y m b o l %          C o d e   p a g e             %
 
                                   ^%P%P%P%j%P%P%P%P%P%P%P%P%P%P%j%P%P%P%j%P%P%P%P%P%P%P%P%P%P%a%
 
                                   %    0       %E n g l i s h ( 4 3 7 )                 %    0       %U S A S C I I                           %
 
                                   % % % %<% % % % % % % % % % %<% % % %<% % % % % % % % % % %$%
 
                                   %    1       %L a t i n ( 8 5 0 )                     %    1       %B r i t i s h                           %
 
                                   % % % %<% % % % % % % % % % %<% % % %<% % % % % % % % % % %$%
 
                                   %    2       %S l a v i c ( 8 5 2 )                   %    2       %G e r m a n                             %
 
                                   % % % %<% % % % % % % % % % %<% % % %<% % % % % % % % % % %$%
 
                                   %    3       %P o r t u g a l ( 8 6 0 )               %    3       %F r e n c h                             %
 
                                   % % % %<% % % % % % % % % % %<% % % %<% % % % % % % % % % %$%
 
                                   %    4       %C a n a d i a n ? F r e n c h ( 8 6 3 ) %    4       %D a n i s h                             %
 
                                   % % % %<% % % % % % % % % % %<% % % %<% % % % % % % % % % %$%
 
                                   %    5       %N o r d i c ( 8 6 5 )                   %    5       %I t a l i a n                           %
 
                                   % % % %<% % % % % % % % % % %<% % % %<% % % % % % % % % % %$%
 
                                   %            %                                        %    6       %S p a n i s h                           %
 
                                   % % % %<% % % % % % % % % % %<% % % %<% % % % % % % % % % %$%
 
                                   %            %                                        %    7       %S w e d i s h                           %
 
                                   % % % %<% % % % % % % % % % %<% % % %<% % % % % % % % % % %$%
 
                                   %            %                                        %    8       %S w i s s                               %
 
                                   % % % %4% % % % % % % % % % %4% % % %4% % % % % % % % % % %%
 
         PV<P    0         - >   O K . 
 
                             R e f e r e n c e   B W - E r r o r . t x t   f i l e . 
 
 
 
             {O    i n t   n u m _ b i t , s y m b o l , c o u n t r y ; 
 
                                     n u m _ b i t = 7 ; s y m b o l = 5 ; c o u n t r y = 1 ; 
 
                             B _ S e l e c t _ S y m b o l ( n u m _ b i t , s y m b o l , c o u n t r y ) ; 
 
 
 
          0f    P  B _ S e l e c t _ S y m b o l   QxeSNxdivu&{_-[0
 
 
 
         * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
         B _ S e t _ B a c k f e e d ( ) 
 
         = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
             R    _UR  B a c k   f e e d 0
 
 
 
             l    i n t   B _ S e t _ B a c k f e e d ( c h a r   o p t i o n ) ; 
 
 
 
             Sxe    c h a r       o p t i o n ;                           %Rx" B "   ܕ  B a c k   f e e d 0
 
                                                                                                           " F "   _UR  B a c k   f e e d 0
 
                                                                                       [STQ N[w^O(uw0RpSQP}
 
                                                                                       g0
 
         PV<P    0         - >   O K . 
 
                             R e f e r e n c e   B W - E r r o r . t x t   f i l e . 
 
 
 
             {O    c h a r   o p t i o n ; 
 
                                       o p t i o n = ' B ' ; 
 
                             B _ S e t _ B a c k f e e d ( o p t i o n ) ; 
 
 
 
          0f    P  B _ S e t _ B a c k f e e d   QxeSNte\Pbkޞ0
 
 
 
         * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
 	 B _ S e t _ B M P S a v e ( ) 
 
         = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
             R    2QX[q_PWj0
 
 
 
             l    i n t   B _ S e t _ B M P S a v e ( i n t   n S a v e ,   c h a r   * p s t r B M P F N a m e ) ; 
 
 
 
             Sxe    i n t         n S a v e ;                               #   1   - >   2QX[Wj
 
 	 	 	 	 	         0   - >   
N2QX[Wj
 
 
 
                             c h a r       * p s t r B M P F N a m e ; 	 	     #   2QX[Wjv
T1z
 
 
 
         PV<P    0         - >   O K . 
 
                             R e f e r e n c e   B W - E r r o r . t x t   f i l e . 
 
 
 
             {O    B _ S e t _ B M P S a v e ( 1 ,   " C : \ T e m p B M P . b m p " ) ; 
 
 
 
          0f    P  B _ S e t _ B M P S a v e   QxeSNzl[/f&T2QX[q_PWj0
 
 
 
         * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
         B _ S e t _ D a r k n e s s ( ) 
 
         = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
             R    -[qa-RpSq^0
 
 
 
             l    i n t   B _ S e t _ D a r k n e s s ( i n t   d a r k n e s s ) ; 
 
 
 
             Sxe    i n t         d a r k n e s s ;                       %-[qa-RpSq^{
W0 ^1 5 gQ
 
                                                                                       [/f  8 0
 
         PV<P    0         - >   O K . 
 
                             R e f e r e n c e   B W - E r r o r . t x t   f i l e . 
 
 
 
             {O    i n t   d a r k n e s s ; 
 
                                     d a r k n e s s = 9 ; 
 
                             B _ S e t _ D a r k n e s s ( d a r k n e s s ) ; 
 
 
 
          0f    P  B _ S e t _ D a r k n e s s   Qxec6Rq_Pom`_0Rf}YvpSQT`Oar
 
                             na NNV }pSQWHh#j_0^0
 
 
 
 	 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
         B _ S e t _ D e b u g D i a l o g ( ) 
 
         = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
             R    -[d/tX0
 
 
 
             l    i n t   B _ S e t _ D e b u g D i a l o g ( i n t   n E n a b l e ) ; 
 
 
 
             Sxe    i n t         n E n a b l e ;                     #   1   - >   d/tX
 
                                                                                   0   - >   d/tXܕ
 
 
 
         PV<P    0         - >   O K . 
 
                             R e f e r e n c e   B W - E r r o r . t x t   f i l e . 
 
 
 
             {O    B _ S e t _ D e b u g D i a l o g ( 1 ) ; 
 
 
 
          0f    P  B _ S e t _ D e b u g D i a l o g   Qxe-[d/tXdNgVP/x_Ngy
 
 	 	 	     Qf:y
o`
\qFhY0
 
 
 
         * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
         B _ S e t _ D i r e c t i o n ( ) 
 
         = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
             R    -[RpSeT0
 
 
 
             l    i n t   B _ S e t _ D i r e c t i o n ( c h a r   d i r e c t i o n ) ; 
 
 
 
             Sxe    i n t         d i r e c t i o n ;                     %-[RpSeT{
WB   T  T 0
 
                                                                                       [P/f
\҉
\1z0gQ[/f  T 0
 
         PV<P    0         - >   O K . 
 
                             R e f e r e n c e   B W - E r r o r . t x t   f i l e . 
 
 
 
             {O    c h a r   d i r e c t i o n ; 
 
                                       d i r e c t i o n = ' T ' ; 
 
                             B _ S e t _ D i r e c t i o n ( d i r e c t i o n ) ; 
 
 
 
          0f    P  B _ S e t _ D i r e c t i o n   Qxe-[RpSeT
\tePHrbgQ@b	gWb_eW[0
 
 
 
         * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
         B _ S e t _ F o r m ( ) 
 
         = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
             R    2QX[&NRpS  F O R M   ( h<h) 0
 
 
 
             l    i n t   B _ S e t _ F o r m ( L P C T S T R   f o r m f i l e ) ; 
 
 
 
             Sxe    L P C T S T R       f o r m f i l e ;                 %h<hjHh
T1zS+T_0
 
                                                                                       h<hjvOnO(u  D r i v e   D i s k   gQ
 
                                                                                       d o s \ p p l b \ d e m o . b a t   O-[S_0
 
         PV<P    0         - >   O K . 
 
                             R e f e r e n c e   B W - E r r o r . t x t   f i l e . 
 
 
 
             {O    B _ S e t _ F o r m ( " d e m o . p r n " ) ; 
 
 
 
          0f    P  B _ S e t _ F o r m   Qxe2QX[&NRpS  F O R M   ( h<h) 0(WO(uPQxeBfHQ
 
                             (W  B _ P r i n t _ F o r m QxeKNMR0O(udkQxeBf1\_WL  B _ P r i n t _ F o r m ( ) 0
 
 
 
         * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
         B _ S e t _ L a b g a p ( ) 
 
         = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
             R    TBf-[jd|w^S  G A P   w^0
 
 
 
             l    i n t   B _ S e t _ L a b g a p ( i n t   l a b l e n g t h , i n t   g a p l e n g t h ) ; 
 
 
 
             Sxe    i n t         l a b l e n g t h ;                     %jd|w^0UMO  d o t 0
 
                             i n t         g a p l e n g t h ;                     %G A P   w^0vu/f#~}Bf_-p  0 0
 
                                                                                       P;1   d o t   =   0 . 1 2 5   m m 0
 
         PV<P    0         - >   O K . 
 
                             R e f e r e n c e   B W - E r r o r . t x t   f i l e . 
 
 
 
             {O    i n t   l a b l e n g t h , g a p l e n g t h ; 
 
                                     l a b l e n g t h = 1 0 0 ; g a p l e n g t h = 2 0 ; 
 
                             B _ S e t _ L a b g a p ( l a b l e n g t h , g a p l e n g t h ) ; 
 
 
 
          0f    P  B _ S e t _ L a b g a p   Qxe-[jd|w^S  G A P   w^0
 
 
 
         * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
         B _ S e t _ L a b w i d t h ( ) 
 
         = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
             R    -[jd|[^0
 
 
 
             l    i n t   B _ S e t _ L a b w i d t h ( i n t   l a b w i d t h ) ; 
 
 
 
             Sxe    i n t         l a b w i d t h ;                       %jd|[^0UMO  d o t 0
 
                                                                                       P;1   d o t   =   0 . 1 2 5   m m 0
 
 
 
         PV<P    0         - >   O K . 
 
                             R e f e r e n c e   B W - E r r o r . t x t   f i l e . 
 
 
 
             {O    i n t   l a b w i d t h ; 
 
                                     l a b w i d t h = 2 5 0 ; 
 
                             B _ S e t _ L a b w i d t h ( l a b w i d t h ) ; 
 
 
 
          0f    P  B _ S e t _ L a b w i d t h   Qxe-[jd|[^0vuO(udkQxe1\
NO(u
 
                             B _ S e t _ O r i g i n p o i n t   Qxe0
 
 
 
         * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
         B _ S e t _ O r i g i n p o i n t ( ) 
 
         = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
             R    -[YRpSޞ0
 
 
 
             l    i n t   B _ S e t _ O r i g i n p o i n t ( i n t   h o r , i n t   v e r ) ; 
 
 
 
             Sxe    i n t         h o r ;                                 %4ls^LuWޞ0UMO  d o t 0
 
                             i n t         v e r ;                                 %WvLuWޞ0UMO  d o t 0
 
                                                                                       P;1   d o t   =   0 . 1 2 5   m m 0
 
         PV<P    0         - >   O K . 
 
                             R e f e r e n c e   B W - E r r o r . t x t   f i l e . 
 
 
 
             {O    i n t   h o r , v e r ; 
 
                                     h o r = 0 ; v e r = 0 ; 
 
                             B _ S e t _ O r i g i n p o i n t ( h o r , v e r ) ; 
 
 
 
          0f    P  B _ S e t _ O r i g i n p o i n t   QxeO(u͑e-[wnޞ  X 0Y   0
 
 
 
         * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
         B _ S e t _ P r n c o m p o r t ( ) 
 
         = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
             R    -[  S e r i a l   P o r t 0
 
 
 
             l    i n t   B _ S e t _ P r n c o m p o r t ( i n t   b a u d , c h a r   p a r i t y , i n t   d a t a , i n t   s t o p ) ; 
 
 
 
             Sxe    i n t         b a u d ;                               %>rsYNh
 
                                                                                       R%P%P%d%P%P%P%P%P%P%U%
 
                                                                                       %b a u d %      s p e e d         %
 
                                                                                       ^%P%P%j%P%P%P%P%P%P%a%
 
                                                                                       %  3 8   %  3 8 , 4 0 0   b a u d %
 
                                                                                       % % %<% % % % % % %$%
 
                                                                                       %  1 9   %  1 9 , 2 0 0   b a u d %
 
                                                                                       % % %<% % % % % % %$%
 
                                                                                       %  9 6   %    9 , 6 0 0   b a u d %
 
                                                                                       % % %<% % % % % % %$%
 
                                                                                       %  4 8   %    4 , 8 0 0   b a u d %
 
                                                                                       % % %<% % % % % % %$%
 
                                                                                       %  2 4   %    2 , 4 0 0   b a u d %
 
                                                                                       % % %4% % % % % % %%
 
                             c h a r       p a r i t y ;                           %P a r i t y 0' O ' /f  o d d ' E ' /f  e v e n   p a r i t y 
 
                                                                                                       ' N ' /f  n o n e   p a r i t y 0
 
                             i n t         d a t a ;                               %D a t a   b i t   n u m b e r 7   b  8 0
 
                             i n t         s t o p ;                               %S t o p   b i t   n u m b e r 1   b  2 0
 
 
 
         PV<P    0         - >   O K . 
 
                             R e f e r e n c e   B W - E r r o r . t x t   f i l e . 
 
 
 
             {O    i n t     b a u d , d a t a , s t o p ; 
 
                             c h a r   p a r i t y ; 
 
                                       p a r i t y = ' N ' ; b a u d = 9 6 ; d a t a = 8 ; s t o p = 1 ; 
 
                             B _ S e t _ P r n c o m p o r t ( b a u d , p a r i t y , d a t a , s t o p ) ; 
 
 
 
          0f    P  B _ S e t _ P r n c o m p o r t   Qxe-[  S e r i a l   P o r t 9e  p r i n t e r   ;N_jvT
 
                             0pSh_j_;N_jvT&TGRg|vu
NSwKNN`0
 
 
 
         * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
         B _ S e t _ P r n c o m p o r t _ P C ( ) 
 
         = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
             R    -[  P C   ^RW0
 
 
 
             l    i n t   B _ S e t _ P r n c o m p o r t _ P C ( i n t   n B a u d R a t e ,   i n t   n B y t e S i z e ,   i n t   n P a r i t y , 
 
 	 	 	 	 	 	 	 	 i n t   n S t o p B i t s ,   i n t   n D s r ,   i n t   n C t s ,   i n t   n X o n X o f f ) ; 
 
 
 
             Sxe    i n t         n B a u d R a t e ;                     %>rsYNh
 
                                                                                         1   - >   1 1 0           9   - >   1 9 2 0 0   
 
                                                                                         2   - >   3 0 0         1 0   - >   3 8 4 0 0   
 
                                                                                         3   - >   6 0 0         1 1   - >   5 6 0 0 0   
 
                                                                                         4   - >   1 2 0 0       1 2   - >   5 7 6 0 0   
 
                                                                                         5   - >   2 4 0 0       1 3   - >   1 1 5 2 0 0   
 
                                                                                         6   - >   4 8 0 0       1 4   - >   1 2 8 0 0 0   
 
                                                                                         7   - >   9 6 0 0       1 5   - >   2 5 6 0 0 0   
 
                                                                                         8   - >   1 4 4 0 0       0   - >   9 6 0 0 
 
 
 
                             i n t         n B y t e S i z e ;                     %D a t a   b i t   n u m b e r : 
 
                                                                                         0   - >   7 - b i t   d a t a 
 
                                                                                         7   - >   7 - b i t   d a t a 
 
                                                                                         8   - >   8 - b i t   d a t a 
 
 
 
                             i n t         n P a r i t y ;                         %P a r i t y YNh
 
                                                                                         0   - >   n o n e   p a r i t y 
 
                                                                                         1   - >   e v e n   p a r i t y 
 
                                                                                         2   - >   o d d     p a r i t y 
 
                             i n t         n S t o p B i t s ;                     %S t o p   b i t   n u m b e r : 
 
                                                                                         0   - >   1   s t o p   b i t 
 
                                                                                         1   - >   1   s t o p   b i t 
 
                                                                                         2   - >   2   s t o p   b i t s 
 
                             i n t         n D s r ;                               %S e t u p   h a r d w a r e   f l o w   c o n t r o l 
 
                                                                                         1   - >   D T R   C O N T R O L   H A N D S H A K E ; 
 
                                                                                         0   - >   D T R   C O N T R O L   E N A B L E ; 
 
 
 
                             i n t         n C t s ;                               %S e t u p   h a r d w a r e   f l o w   c o n t r o l 
 
                                                                                         1   - >   R T S   C O N T R O L   H A N D S H A K E ; 
 
                                                                                         0   - >   R T S   C O N T R O L   E N A B L E ; 
 
 
 
                             i n t         n X o n X o f f ;                       %S e t u p   s o f t w a r e   f l o w   c o n t r o l 
 
                                                                                         0   - >   E n a b l e ; 
 
                                                                                         1   - >   D i s a b l e ; 
 
         PV<P    0         - >   O K . 
 
                             R e f e r e n c e   B W - E r r o r . t x t   f i l e . 
 
 
 
             {O    B _ S e t _ P r n c o m p o r t _ P C ( 0 ,   0 ,   0 ,   0 ,   1 ,   1 ,   1 ) ; 
 
 
 
          0f    P  B _ S e t _ P r n c o m p o r t _ P C   Qxeg-[  P C   ^RW-[<PO9e  P C   vT
 
                             epSh_j^RW-[<PYg
NTGR!qlpSh_j#c0dkQxe_(WQxe
 
                             B _ P r i n t _ O u t   KNMRWL0
 
                             
 
         * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
         B _ S e t _ S p e e d ( ) 
 
         = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
             R    -[RpS^0
 
 
 
             l    i n t   B _ S e t _ S p e e d ( i n t   s p e e d ) ; 
 
 
 
             Sxe    i n t   s p e e d ;                                   %RpS^{
W0 ^7 0
 
 
 
         PV<P    0         - >   O K . 
 
                             R e f e r e n c e   B W - E r r o r . t x t   f i l e . 
 
 
 
             {O    i n t   s p e e d ; 
 
                                     s p e e d = 2 ; 
 
                             B _ S e t _ S p e e d ( s p e e d ) ; 
 
 
 
          0f    P  B _ S e t _ S p e e d   Qxe-[RpS^0
 
 
 
         * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
 	 B _ S e t _ P r o c e s s D l g ( ) 
 
         = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
             R    _Ubܕ2^
\qFh0
 
 
 
             l    i n t   B _ S e t _ P r o c e s s D l g ( i n t   n S h o w ) ; 
 
 
 
             Sxe    i n t       n S h o w ; 	 	 0 : ܕ2^
\qFh0
 
 	 	 	 	 	 1 : _U2^
\qFh
 
 
 
         PV<P    0         - >   O K . 
 
                             R e f e r e n c e   B W - E r r o r . t x t   f i l e . 
 
 
 
             {O    B _ S e t _ P r o c e s s D l g ( 1 ) ; 
 
 
 
          0f    P  B _ S e t _ P r o c e s s D l g   QxeSܕ2^
\qFh0
 
 
 
         * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
         B _ B a r 2 d _ P D F 4 1 7 _ N ( ) 
 
         = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
             R    pSQ NP  P D F - 4 1 7   2 D   B a r c o d e 0
 
 
 
             l    i n t   B _ B a r 2 d _ P D F 4 1 7 _ N ( i n t   x ,   i n t   y ,   i n t   w ,   i n t   h ,   L P C T S T R   p P a r a m e t e r ,   L P C T S T R   d a t a ) ; 
 
 
 
             Sxe    i n t           x ;                                   %X   ^j0
 
                             i n t           y ;                                   %Y   ^j0
 
                             i n t           w ;                                   % g'YRpS[^UMO  d o t s 0
 
                             i n t           h ;                                   % g'YRpSؚ^UMO  d o t s 0
 
 	             L P C T S T R   p P a r a m e t e r                   %vQNSυKNSxe, dkSxeSN/fN U L L 0
 
 	                                                                       /!hckI{}( s ) {
W0 ^8 0
 
 	 	 	 	 	       ǌeX.~I{}( c ) {
W0   b  1 0
 
 	 	 	 	 	       p r i n t   h u m a n   r e a d a b l e ( p x x x , y y y , m m ) 
 
 	 	 	 	 	       x x x : H u m a n   r e a d a b l e   h o r i z o n t a l   s t a r t   l o c a t i o n ,   0   ~   9 9 9 . 
 
 	 	 	 	 	       y y y :   H u m a n   r e a d a b l e   v e r t i c a l   s t a r t   l o c a t i o n ,   0   ~   9 9 9 . 
 
 	 	 	 	 	       m m : M a x i m u m   c h a r a c t e r s   p e r   l i n e ,   0   ~   9 9 . 
 
 	 	 	 	 	       f : B a r   c o d e   o r i g i n   p o i n t ,   0   o r   1 . 
 
 	 	 	 	 	       !jD}[^( x ) {
W2 ^9   d o t s 0
 
 	 	 	 	 	       !jD}ؚ^( y ) {
W4 ^9 9   d o t s 0
 
 	 	 	 	 	        g'Y  r o w   c o u n t ( r ) 0
 
 	 	 	 	 	        g'Y  c o l u m n   c o u n t ( l ) 0
 
 	 	 	 	 	       T r u n c a t i o n   f l a g ( t ) ' 0 '   /f  n o r m a l   T  ' 1 '   /f  t r u n c a t e d . 
 
                             L P C T S T R   d a t a ;                             %ǌeW[2N0
 
 
 
         PV<P    0         - >   O K . 
 
                             R e f e r e n c e   B W - E r r o r . t x t   f i l e . 
 
 
 
             {O    B _ B a r 2 d _ P D F 4 1 7 _ N ( 1 0 , 1 0 , 4 0 0 , 3 0 0 ,  s 0 , c 0 , p 4 0 0 , 4 0 0 , 1 0 , f 0 , x 3 , y 7 , r 1 0 , l 2 , f 0  , " A R G O X I N F O " ) ; 
 
                             p P a r a m e t e r SxeSNNaD}T
 
 
 
          0f    1 . P  B _ B a r 2 d _ P D F 4 1 7   QxeSNRpSQ NP  P D F - 4 1 7   2 D   B a r c o d e 0
 
 	             2 . pSh_j/ecHr,g  - -   R 4 0 0   R 2 B 0   3 . 0 8 
 
 
 
         * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
 	 B _ R e s e t P r i n t e r ( ) 
 
         = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
             R    dkQxegOpSh_j͑e_j0
 
 
 
             l    i n t   B _ R e s e t P r i n t e r ( ) ; 
 
 
 
         PV<P    0         - >   O K . 
 
                             R e f e r e n c e   B W - E r r o r . t x t   f i l e . 
 
 
 
             {O    B _ R e s e t P r i n t e r ( ) ; 
 
 
 
         * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
 